/*
vuex 的 mutations 模块
*/
import {
  RECEIVE_UFILE_LOG_LIST,
  RECEIVE_LOADING,
  RECEIVE_NEXT,
  RECEIVE_PAGE_LAST_FILE,
  RECEIVE_READ_FILE,
  RECEIVE_WEBSOCKET
} from './mutation-types'
// [方法名](state,{param}){}
export default {
  [RECEIVE_LOADING] (state, {isLoading}) {
    state.isLoading = isLoading
  },
  [RECEIVE_NEXT] (state, {isNext}) {
    state.isNext = isNext
  },
  [RECEIVE_UFILE_LOG_LIST] (state, {log_list}) {
    state.log_list = log_list
  },
  [RECEIVE_PAGE_LAST_FILE] (state, {page_last_file}) {
    state.page_last_file = page_last_file
  },
  [RECEIVE_READ_FILE] (state, {read_file}) {
    state.read_file = read_file
  },
  [RECEIVE_WEBSOCKET] (state, {web_socket}) {
    state.web_socket = web_socket
  }
}
